﻿using System;
using System.Runtime.Serialization;

namespace EvidenceManagement.Model
{
    [DataContract]
    [DbObject(SelectCommandText = "ContactDetail_Select"
        , InsertCommandText = "ContactDetail_Insert"
        , UpdateCommandText = "ContactDetail_Update"
        , DeleteCommandText = "ContactDetail_Delete")]
    public class ContactDetail : IAuditable
    {
        [DbColumn]
        [DataMember]
        public Guid ContactDetailID { get; set; }

        [DbColumn]
        [DataMember]
        public string HomeNumber { get; set; }

        [DbColumn]
        [DataMember]
        public string MobileNumber { get; set; }

        [DbColumn]
        [DataMember]
        public string FaxNumber { get; set; }

        [DbColumn]
        [DataMember]
        public string EmailAddress { get; set; }

        [DbColumn]
        [DataMember]
        public string WorkNumber { get; set; }

        #region IAuditable Members

        [DbColumn]
        [DataMember]
        public Guid CreatedBy
        {
            get;
            set;
        }

        [DbColumn]
        [DataMember]
        public Guid ModifiedBy
        {
            get;
            set;
        }

        public bool IsDeleted
        {
            get;
            set;
        }

        #endregion

    }
}
